<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE html 
     PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
     "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
  <title>Class: Spec::Example::Configuration</title>
  <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
  <meta http-equiv="Content-Script-Type" content="text/javascript" />
  <link rel="stylesheet" href="../../.././rdoc-style.css" type="text/css" media="screen" />
  <script type="text/javascript">
  // <![CDATA[

  function popupCode( url ) {
    window.open(url, "Code", "resizable=yes,scrollbars=yes,toolbar=no,status=no,height=150,width=400")
  }

  function toggleCode( id ) {
    if ( document.getElementById )
      elem = document.getElementById( id );
    else if ( document.all )
      elem = eval( "document.all." + id );
    else
      return false;

    elemStyle = elem.style;
    
    if ( elemStyle.display != "block" ) {
      elemStyle.display = "block"
    } else {
      elemStyle.display = "none"
    }

    return true;
  }
  
  // Make codeblocks hidden by default
  document.writeln( "<style type=\"text/css\">div.method-source-code { display: none }</style>" )
  
  // ]]>
  </script>

</head>
<body>



    <div id="classHeader">
        <table class="header-table">
        <tr class="top-aligned-row">
          <td><strong>Class</strong></td>
          <td class="class-name-in-header">Spec::Example::Configuration</td>
        </tr>
        <tr class="top-aligned-row">
            <td><strong>In:</strong></td>
            <td>
                <a href="../../../files/vendor/plugins/rspec-rails/lib/spec/rails/extensions/spec/example/configuration_rb.html">
                vendor/plugins/rspec-rails/lib/spec/rails/extensions/spec/example/configuration.rb
                </a>
        <br />
            </td>
        </tr>

        <tr class="top-aligned-row">
            <td><strong>Parent:</strong></td>
            <td>
                Object
            </td>
        </tr>
        </table>
    </div>
  <!-- banner header -->

  <div id="bodyContent">



  <div id="contextContent">



   </div>

    <div id="method-list">
      <h3 class="section-bar">Methods</h3>

      <div class="name-list">
      <a href="#M000076">fixture_path</a>&nbsp;&nbsp;
      <a href="#M000077">fixture_path=</a>&nbsp;&nbsp;
      <a href="#M000078">global_fixtures</a>&nbsp;&nbsp;
      <a href="#M000079">global_fixtures=</a>&nbsp;&nbsp;
      <a href="#M000071">new</a>&nbsp;&nbsp;
      <a href="#M000074">use_instantiated_fixtures</a>&nbsp;&nbsp;
      <a href="#M000075">use_instantiated_fixtures=</a>&nbsp;&nbsp;
      <a href="#M000072">use_transactional_fixtures</a>&nbsp;&nbsp;
      <a href="#M000073">use_transactional_fixtures=</a>&nbsp;&nbsp;
      </div>
    </div>

  </div>


    <!-- if includes -->

    <div id="section">


    <div id="constants-list">
      <h3 class="section-bar">Constants</h3>

      <div class="name-list">
        <table summary="Constants">
        <tr class="top-aligned-row context-row">
          <td class="context-item-name">EXAMPLE_GROUP_CLASSES</td>
          <td>=</td>
          <td class="context-item-value">[         ::Test::Unit::TestCase,         ::Spec::Rails::Example::RailsExampleGroup,         ::Spec::Rails::Example::FunctionalExampleGroup,         ::Spec::Rails::Example::ControllerExampleGroup,         ::Spec::Rails::Example::ViewExampleGroup,         ::Spec::Rails::Example::HelperExampleGroup,         ::Spec::Rails::Example::ModelExampleGroup</td>
          <td width="3em">&nbsp;</td>
          <td class="context-item-desc">
<a href="../Rails.html">Rails</a> 1.2.3 does a copy of the
@inheritable_attributes to the subclass when the subclass is created. This
causes an ordering issue when setting state on <a
href="Configuration.html">Configuration</a> because the data is already
copied. Iterating over EXAMPLE_GROUP_CLASSES causes the base ExampleGroup
classes to have their @inheritable_attributes updated. TODO: BT - When we
no longer support <a href="../Rails.html">Rails</a> 1.2.3, we can remove
this functionality

</td>
        </tr>
        </table>
      </div>
    </div>



      


    <!-- if method_list -->
    <div id="methods">
      <h3 class="section-bar">Public Class methods</h3>

      <div id="method-M000071" class="method-detail">
        <a name="M000071"></a>

        <div class="method-heading">
          <a href="#M000071" class="method-signature">
          <span class="method-name">new</span><span class="method-args">()</span>
          </a>
        </div>
      
        <div class="method-description">
          <p><a class="source-toggle" href="#"
            onclick="toggleCode('M000071-source');return false;">[Source]</a></p>
          <div class="method-source-code" id="M000071-source">
<pre>
    <span class="ruby-comment cmt"># File vendor/plugins/rspec-rails/lib/spec/rails/extensions/spec/example/configuration.rb, line 23</span>
23:         <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">initialize</span>
24:           <span class="ruby-keyword kw">super</span>
25:           <span class="ruby-keyword kw">self</span>.<span class="ruby-identifier">fixture_path</span> = <span class="ruby-constant">RAILS_ROOT</span> <span class="ruby-operator">+</span> <span class="ruby-value str">'/spec/fixtures'</span>
26:         <span class="ruby-keyword kw">end</span>
</pre>
          </div>
        </div>
      </div>

      <h3 class="section-bar">Public Instance methods</h3>

      <div id="method-M000076" class="method-detail">
        <a name="M000076"></a>

        <div class="method-heading">
          <a href="#M000076" class="method-signature">
          <span class="method-name">fixture_path</span><span class="method-args">()</span>
          </a>
        </div>
      
        <div class="method-description">
          <p><a class="source-toggle" href="#"
            onclick="toggleCode('M000076-source');return false;">[Source]</a></p>
          <div class="method-source-code" id="M000076-source">
<pre>
    <span class="ruby-comment cmt"># File vendor/plugins/rspec-rails/lib/spec/rails/extensions/spec/example/configuration.rb, line 46</span>
46:         <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">fixture_path</span>
47:           <span class="ruby-constant">Test</span><span class="ruby-operator">::</span><span class="ruby-constant">Unit</span><span class="ruby-operator">::</span><span class="ruby-constant">TestCase</span>.<span class="ruby-identifier">fixture_path</span>
48:         <span class="ruby-keyword kw">end</span>
</pre>
          </div>
        </div>
      </div>

      <div id="method-M000077" class="method-detail">
        <a name="M000077"></a>

        <div class="method-heading">
          <a href="#M000077" class="method-signature">
          <span class="method-name">fixture_path=</span><span class="method-args">(path)</span>
          </a>
        </div>
      
        <div class="method-description">
          <p><a class="source-toggle" href="#"
            onclick="toggleCode('M000077-source');return false;">[Source]</a></p>
          <div class="method-source-code" id="M000077-source">
<pre>
    <span class="ruby-comment cmt"># File vendor/plugins/rspec-rails/lib/spec/rails/extensions/spec/example/configuration.rb, line 49</span>
49:         <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">fixture_path=</span>(<span class="ruby-identifier">path</span>)
50:           <span class="ruby-constant">EXAMPLE_GROUP_CLASSES</span>.<span class="ruby-identifier">each</span> <span class="ruby-keyword kw">do</span> <span class="ruby-operator">|</span><span class="ruby-identifier">example_group</span><span class="ruby-operator">|</span>
51:             <span class="ruby-identifier">example_group</span>.<span class="ruby-identifier">fixture_path</span> = <span class="ruby-identifier">path</span>
52:           <span class="ruby-keyword kw">end</span>
53:         <span class="ruby-keyword kw">end</span>
</pre>
          </div>
        </div>
      </div>

      <div id="method-M000078" class="method-detail">
        <a name="M000078"></a>

        <div class="method-heading">
          <a href="#M000078" class="method-signature">
          <span class="method-name">global_fixtures</span><span class="method-args">()</span>
          </a>
        </div>
      
        <div class="method-description">
          <p><a class="source-toggle" href="#"
            onclick="toggleCode('M000078-source');return false;">[Source]</a></p>
          <div class="method-source-code" id="M000078-source">
<pre>
    <span class="ruby-comment cmt"># File vendor/plugins/rspec-rails/lib/spec/rails/extensions/spec/example/configuration.rb, line 55</span>
55:         <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">global_fixtures</span>
56:           <span class="ruby-operator">::</span><span class="ruby-constant">Test</span><span class="ruby-operator">::</span><span class="ruby-constant">Unit</span><span class="ruby-operator">::</span><span class="ruby-constant">TestCase</span>.<span class="ruby-identifier">fixture_table_names</span>
57:         <span class="ruby-keyword kw">end</span>
</pre>
          </div>
        </div>
      </div>

      <div id="method-M000079" class="method-detail">
        <a name="M000079"></a>

        <div class="method-heading">
          <a href="#M000079" class="method-signature">
          <span class="method-name">global_fixtures=</span><span class="method-args">(fixtures)</span>
          </a>
        </div>
      
        <div class="method-description">
          <p><a class="source-toggle" href="#"
            onclick="toggleCode('M000079-source');return false;">[Source]</a></p>
          <div class="method-source-code" id="M000079-source">
<pre>
    <span class="ruby-comment cmt"># File vendor/plugins/rspec-rails/lib/spec/rails/extensions/spec/example/configuration.rb, line 58</span>
58:         <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">global_fixtures=</span>(<span class="ruby-identifier">fixtures</span>)
59:           <span class="ruby-constant">EXAMPLE_GROUP_CLASSES</span>.<span class="ruby-identifier">each</span> <span class="ruby-keyword kw">do</span> <span class="ruby-operator">|</span><span class="ruby-identifier">example_group</span><span class="ruby-operator">|</span>
60:             <span class="ruby-identifier">example_group</span>.<span class="ruby-identifier">fixtures</span>(<span class="ruby-operator">*</span><span class="ruby-identifier">fixtures</span>)
61:           <span class="ruby-keyword kw">end</span>
62:         <span class="ruby-keyword kw">end</span>
</pre>
          </div>
        </div>
      </div>

      <div id="method-M000074" class="method-detail">
        <a name="M000074"></a>

        <div class="method-heading">
          <a href="#M000074" class="method-signature">
          <span class="method-name">use_instantiated_fixtures</span><span class="method-args">()</span>
          </a>
        </div>
      
        <div class="method-description">
          <p><a class="source-toggle" href="#"
            onclick="toggleCode('M000074-source');return false;">[Source]</a></p>
          <div class="method-source-code" id="M000074-source">
<pre>
    <span class="ruby-comment cmt"># File vendor/plugins/rspec-rails/lib/spec/rails/extensions/spec/example/configuration.rb, line 37</span>
37:         <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">use_instantiated_fixtures</span>
38:           <span class="ruby-constant">Test</span><span class="ruby-operator">::</span><span class="ruby-constant">Unit</span><span class="ruby-operator">::</span><span class="ruby-constant">TestCase</span>.<span class="ruby-identifier">use_instantiated_fixtures</span>
39:         <span class="ruby-keyword kw">end</span>
</pre>
          </div>
        </div>
      </div>

      <div id="method-M000075" class="method-detail">
        <a name="M000075"></a>

        <div class="method-heading">
          <a href="#M000075" class="method-signature">
          <span class="method-name">use_instantiated_fixtures=</span><span class="method-args">(value)</span>
          </a>
        </div>
      
        <div class="method-description">
          <p><a class="source-toggle" href="#"
            onclick="toggleCode('M000075-source');return false;">[Source]</a></p>
          <div class="method-source-code" id="M000075-source">
<pre>
    <span class="ruby-comment cmt"># File vendor/plugins/rspec-rails/lib/spec/rails/extensions/spec/example/configuration.rb, line 40</span>
40:         <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">use_instantiated_fixtures=</span>(<span class="ruby-identifier">value</span>)
41:           <span class="ruby-constant">EXAMPLE_GROUP_CLASSES</span>.<span class="ruby-identifier">each</span> <span class="ruby-keyword kw">do</span> <span class="ruby-operator">|</span><span class="ruby-identifier">example_group</span><span class="ruby-operator">|</span>
42:             <span class="ruby-identifier">example_group</span>.<span class="ruby-identifier">use_instantiated_fixtures</span> = <span class="ruby-identifier">value</span>
43:           <span class="ruby-keyword kw">end</span>
44:         <span class="ruby-keyword kw">end</span>
</pre>
          </div>
        </div>
      </div>

      <div id="method-M000072" class="method-detail">
        <a name="M000072"></a>

        <div class="method-heading">
          <a href="#M000072" class="method-signature">
          <span class="method-name">use_transactional_fixtures</span><span class="method-args">()</span>
          </a>
        </div>
      
        <div class="method-description">
          <p><a class="source-toggle" href="#"
            onclick="toggleCode('M000072-source');return false;">[Source]</a></p>
          <div class="method-source-code" id="M000072-source">
<pre>
    <span class="ruby-comment cmt"># File vendor/plugins/rspec-rails/lib/spec/rails/extensions/spec/example/configuration.rb, line 28</span>
28:         <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">use_transactional_fixtures</span>
29:           <span class="ruby-constant">Test</span><span class="ruby-operator">::</span><span class="ruby-constant">Unit</span><span class="ruby-operator">::</span><span class="ruby-constant">TestCase</span>.<span class="ruby-identifier">use_transactional_fixtures</span>
30:         <span class="ruby-keyword kw">end</span>
</pre>
          </div>
        </div>
      </div>

      <div id="method-M000073" class="method-detail">
        <a name="M000073"></a>

        <div class="method-heading">
          <a href="#M000073" class="method-signature">
          <span class="method-name">use_transactional_fixtures=</span><span class="method-args">(value)</span>
          </a>
        </div>
      
        <div class="method-description">
          <p><a class="source-toggle" href="#"
            onclick="toggleCode('M000073-source');return false;">[Source]</a></p>
          <div class="method-source-code" id="M000073-source">
<pre>
    <span class="ruby-comment cmt"># File vendor/plugins/rspec-rails/lib/spec/rails/extensions/spec/example/configuration.rb, line 31</span>
31:         <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">use_transactional_fixtures=</span>(<span class="ruby-identifier">value</span>)
32:           <span class="ruby-constant">EXAMPLE_GROUP_CLASSES</span>.<span class="ruby-identifier">each</span> <span class="ruby-keyword kw">do</span> <span class="ruby-operator">|</span><span class="ruby-identifier">example_group</span><span class="ruby-operator">|</span>
33:             <span class="ruby-identifier">example_group</span>.<span class="ruby-identifier">use_transactional_fixtures</span> = <span class="ruby-identifier">value</span>
34:           <span class="ruby-keyword kw">end</span>
35:         <span class="ruby-keyword kw">end</span>
</pre>
          </div>
        </div>
      </div>


    </div>


  </div>


<div id="validator-badges">
  <p><small><a href="http://validator.w3.org/check/referer">[Validate]</a></small></p>
</div>

</body>
</html>